import Vue from 'vue'
import Router from 'vue-router'

import Index from '@v/Index'
import Waterstatu from '@v/allwatermg/Waterstatu'
import Sixsub from '@v/sixsubmg/Sixsub'
import Fullsys from '@v/sixsubmg/Fullsys'
import Control from '@v/sixsubmg/Control'

Vue.use(Router)

export default new Router({
  mode: 'history', //去除#
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      meta: {
        requireAuth: false
      },
    },
    {
      path: '/index',
      name: 'Index',
      component: Index,
      meta: {
        requireAuth: true,
      },
    },
    {
      path:'/waterstatu',
      name:'Waterstatu',
      component:Waterstatu,
      meta:{
        requireAuth:true
      }
    },
    {
      path:'/sixsub',
      name:'Sixsub',
      component:Sixsub,
      meta:{
        requireAuth:true
      }
    },
    {
      path:'/fullsys',
      name:' Fullsys',
      component: Fullsys,
      meta:{
        requireAuth:true
      }
    },
    {
      path:'/control',
      name:'Control',
      component:Control,
      meta:{
        requireAuth:true,
      }
    }
  ]
})
